package com.gjy.disruptor.longevent;

import com.lmax.disruptor.EventHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 事件处理者
 *
 * @author gjy
 * @version 1.0
 * @since 2025-04-02 12:22:23
 */
public class LongEventHandler implements EventHandler<LongEvent> {

    private static final Logger log = LoggerFactory.getLogger(LongEventHandler.class);

    @Override
    public void onEvent(LongEvent event, long sequence, boolean endOfBatch) throws Exception {
        log.info("{},{},{}", event, sequence, endOfBatch);
    }

}
